<?php
/**
 * Created by PhpStorm.
 * User: 刘翰文
 * Date: 2019/5/17
 * Time: 13:07
 */

namespace app\api\model;


class Doctor extends BaseModels
{
    protected $hidden = ['password'];

    function article(){
        return $this->hasMany('Article','author','id');
    }

    function keshi(){
        return $this->belongsToMany('Keshi','DoctorKeshi','keshi_id','doctor_id');
    }


}